package com.bishe.sevice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bishe.dao.BulletinDao;
import com.bishe.domain.Bulletin;
import com.bishe.sevice.IBulletinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BulletinServicelmpl extends ServiceImpl<BulletinDao, Bulletin> implements IBulletinService {

    @Autowired
    private BulletinDao bulletinDao;

    @Override
    public boolean modify(Bulletin bulletin){
        return bulletinDao.updateById(bulletin)>0;
    }

    @Override
    public boolean delete(Integer id){
        return bulletinDao.deleteById(id)>0;
    }
}
